<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>登录</title>

    <!-- Bootstrap core CSS -->
    <link href="{{ url_for('static', filename='backend/css/bootstrap.min.css') }}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{{ url_for('static', filename='backend/css/signin.css') }}" rel="stylesheet">
</head>

<body class="text-center">
<form class="form-signin" action="{{ url_for('admin.admin_login') }}" method="post">
    <h1 style="margin-bottom: 50px">博客管理系统</h1>
    {% with messages = get_flashed_messages(with_categories=True, category_filter=('error')) %}
        {% if messages %}
            {% for (category, message) in messages %}
                <span style="color: red;">{{ message }}||{{ category }}</span>
            {% endfor %}
        {% endif %}
    {% endwith %}
    {{ form.hidden_tag() }}
    {{ form.username.label(class="sr-only") }}{{ form.username }}
    {{ form.password.label(class="sr-only") }}{{ form.password }}
    {{ form.submit }}
    <p class="mt-5 mb-3 text-muted">&copy; 2020</p>
</form>
</body>
</html>
